#!/bin/bash
#author:alexandercer@gmail.com

mkdir ./$@.atest

touch "./$@.atest/$@.cpp"
touch "./$@.atest/makefile"

echo "//
//author:$USER(alexandercer@gmail.com)
//data:`date`

#include <cstdlib>
#include <iostream>
using namespace std;

int main(int argc, char* argv[])
{
        cout<<\"hello world\"<<endl;
        return 0;
}" > "./$@.atest/$@.cpp"

echo "#
#author:$USER(alexandercer@gmail.com)
#data:`date`

all:
	g++ -g -o $@.exe $@.cpp
clean:
	rm -rf $@.exe
" > "./$@.atest/makefile"



